﻿using System;
using System.Data;
using System.Data.Common;

namespace Enterprise.Infrastructure.RepositoryFramework
{
    interface IRepository
    {
        string ConnectionString { get; set; }
        int ExecuteNonQuery(DbCommand cmd);
        IDataReader ExecuteReader(DbCommand cmd);
        IDataReader ExecuteReader(DbCommand cmd, CommandBehavior behavior);
        object ExecuteScalar(DbCommand cmd);
    }
}
